package com.boil.qz.safekavass.service;

import com.boil.qz.safekavass.model.SecurityCommitteeUnitEntity;
import com.boil.qz.safekavass.repository.SecurityCommitteeUnitRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by ChenYong on 2017-11-13.
 * <br>
 */
@Service
public class SecurityCommitteeUnitService extends JpaRepositoryService<SecurityCommitteeUnitEntity, Long> {
    /**
     * 注入安委会成员单位实体仓库
     */
    @Autowired
    private SecurityCommitteeUnitRepository securityCommitteeUnitRepository;

    /**
     * 查询所有安委会成员单位。
     *
     * @return 所有安委会成员单位 <code>List</code>
     */
    public List<SecurityCommitteeUnitEntity> findAll() {
        return securityCommitteeUnitRepository.findAll();
    }
}
